/*
 * EntityJavaTaskBase.fx
 *
 * Created on Oct 10, 2009, 12:43:33 PM
 */

package dawnland02.model.entity;

import javafx.async.JavaTaskBase;
import javafx.async.RunnableFuture;

/**
 * @author user
 */

package class EntityJavaTaskBase extends JavaTaskBase, JavaTaskBaseInterface{

    public-init var entity: Entity;

    public function getEntity() : Entity {
        entity;
    }

    protected override function create() : RunnableFuture { //called after this.start() is called
        entity;
    }

    public override function setEntity(entity : Entity) : Void {
        this.entity = entity;        
    }

}
